import request from '@/utils/request'

export function getFont(data) {
  return request({
    url: '/font/',
    method: 'get',
    params:data
  })
}


export function updateFont(data) {
    return request({
      url: '/font/'+data.id+'/?partial=true',
      method: 'PATCH',
      data:data
    })
  }

  export function addFont(data) {
    return request({
      url: '/font/',
      method: 'POST',
      data:data
    })
  }

  export function delFont(id) {
    return request({
      url: '/font/'+id+'/',
      method: 'DELETE'
    })
  }